Skip to content

Fix array-to-List bug and clarify synchronous usage in “Async” classes #2822

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kimsunghyun1995
Copy link
Contributor

Array to List conversion

Updated methods like getToolCallbacksFromSyncClients to flatten ToolCallback[] properly using Arrays.asList(...) or streams.

Previously, using List.of(array) created a single-element list wrapping the entire array, causing incorrect behavior.

@tzolov
Copy link
Contributor

tzolov commented Apr 30, 2025

@kimsunghyun1995 I've added few tests, like:

void getToolCallbacksFromSyncClientsWithMultipleClientsShouldReturnCombinedToolCallbacks() {

But they seems to show correct behavior from the existing code. Can you please add a test to show the #2822 (comment) issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants